import request from "./request";

// 登录
export function getAuditTitleList(pageNum) {
    return request({
        url: '/backstage/article/auditList',
        method: 'get',
        params: {
            pageNum
        }
    })
}

// 获取待审核文章内容
export function getAUditArticle(articleId) {
    return request({
        url: '/backstage/article/auditContent',
        method: 'get',
        params: {
            articleId
        }
    })
}

export function passAudit(articleId) {
    return request({
        url: '/backstage/article/articlePass',
        method: "put",
        params: {
            articleId
        }
    })
}

export function noPassAudit(articleId) {
    return request({
        url: '/backstage/article/articleNoPass',
        method: "put",
        params: {
            articleId
        }
    })
}